package com.alibaba.pet.domain;

import com.alibaba.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author itsource
 * @since 2023-03-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PetType extends BaseDomain{


    private String name;
    private String description;

    /**
     * 父类型id
     */
    private Long pid;

    private String pName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();


}
